package com.woniu40.petai_manager.vo;


import com.woniu40.petai_manager.entity.Permission;

import java.util.List;

public class PermissionVo {

    private Integer permissionId;

    private Integer permissionCode;

    private String permissionName;

    private String url;

    private Integer parentId;

    private List<Permission> permissionList;

    public PermissionVo() {

    }

    public PermissionVo(Integer permissionId, String permissionName, List<Permission> permissionList) {
        this.permissionId = permissionId;
        this.permissionName = permissionName;
        this.permissionList = permissionList;
    }

    public PermissionVo(Integer permissionId, Integer permissionCode, String permissionName, String url, Integer parentId, List<Permission> permissionList) {
        this.permissionId = permissionId;
        this.permissionCode = permissionCode;
        this.permissionName = permissionName;
        this.url = url;
        this.parentId = parentId;
        this.permissionList = permissionList;
    }

    @Override
    public String toString() {
        return "PermissionVo{" +
                "permissionId=" + permissionId +
                ", permissionCode=" + permissionCode +
                ", permissionName='" + permissionName + '\'' +
                ", url='" + url + '\'' +
                ", parentId=" + parentId +
                ", permissionList=" + permissionList +
                '}';
    }

    public Integer getPermissionId() {
        return permissionId;
    }

    public void setPermissionId(Integer permissionId) {
        this.permissionId = permissionId;
    }

    public Integer getPermissionCode() {
        return permissionCode;
    }

    public void setPermissionCode(Integer permissionCode) {
        this.permissionCode = permissionCode;
    }

    public String getPermissionName() {
        return permissionName;
    }

    public void setPermissionName(String permissionName) {
        this.permissionName = permissionName;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public List<Permission> getPermissionList() {
        return permissionList;
    }

    public void setPermissionList(List<Permission> permissionList) {
        this.permissionList = permissionList;
    }
}
